from rest_framework.serializers import ModelSerializer
from .models import *

class Authorser(ModelSerializer):
    class Meta:
        model=Author
        fields='__all__'

class Bookser(ModelSerializer):
    class Meta:
        model=Books
        fields='__all__'

class Booksers(ModelSerializer):
    author = Authorser()
    class Meta:
        model=Books
        fields='__all__'

class Shopser(ModelSerializer):
    class Meta:
        model=Shops
        fields='__all__'

class Userser(ModelSerializer):
    class Meta:
        model=User
        fields = "__all__"

class Contentser(ModelSerializer):
    class Meta:
        model=Content
        fields = "__all__"